projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ab2296
)
core: Don't insert null byte in temporary file names
author
Colin Walters
<walters@verbum.org>
Thu, 15 Dec 2011 18:10:41 +0000
(13:10 -0500)
committer
Colin Walters
<walters@verbum.org>
Thu, 15 Dec 2011 18:10:41 +0000
(13:10 -0500)
src/libostree/ostree-core.c
patch
|
blob
|
history
diff --git
a/src/libostree/ostree-core.c
b/src/libostree/ostree-core.c
index c70ca708f6000de41d93746f768b66a7fb23e960..887108f671aeb4bcbea8eb37c45f7434a7ecde51 100644
(file)
--- a/
src/libostree/ostree-core.c
+++ b/
src/libostree/ostree-core.c
@@
-990,7
+990,7
@@
subst_xxxxxx (GRand *rand,
while (*xxxxxx == 'X')
{
- int offset = g_random_int_range (0, sizeof (table));
+ int offset = g_random_int_range (0, sizeof (table)
- 1
);
*xxxxxx = (guint8)table[offset];
xxxxxx++;
}